package 约定编程;

/**
 * @author zyl
 * @Description
 * @since 2024/1/24 15:17
 */

public class Test {
    public static void main(String[] args) {
        HelloService helloService = new HelloServiceImpl();
        HelloService proxyBean = (HelloService) ProxyBean.getProxyBean(helloService, new Myinterceptor());
        proxyBean.sayHello("sam");
    }
}
